/*
 * Consumer.cc
 *
 *  Created on: Apr 3, 2012
 *      Author: victor
 */

#include "Consumer.h"

Consumer::Consumer(Computer* newComputer) : Thread("Consumer"), computer(newComputer){}

Consumer::~Consumer(){}

void Consumer::run(){
	for (;;){
		if (computer->hasPanoramaImage()){
			xprintf("Client sees: ");
			xprintf(computer->getPanoramaImage());
			xprintf(" \n");
			msleep(1000);
		}
	}
}
